package com.wsd.service;

import com.wsd.domain.RepaymentPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepaymentPlanService {
    /**
     * 根据订单编号查找还款记录信息
     *
     * @param loanId
     * @return
     */
    List<RepaymentPlan> selectRepaymentPlanByLoanId(@Param("loanId") long loanId);

    /**
     * 根据订单编号查询某次贷款的所有还款记录详细
     *
     * @param loanId
     * @return
     */
    List<RepaymentPlan> selectRepaymentPlanByLoanIdAndStatus(String loanId);
    /**
     * 根据用户Id查出用户当前应还贷款
     * @param customerId 用户Id
     * @return 用户所有贷款中最近应还款的还款计划列表
     * by WangYuCan
     */
    List<RepaymentPlan> selectCurrentRepaymentPlan(long customerId);
}
